package com.gdwhomework.chapter07.homework003;

public class Worker {
    private String name;
    private double day_sal;
    private int work_day;

    public Worker(String name, double day_sal, int work_day) {
        this.name = name;
        this.day_sal = day_sal;
        this.work_day = work_day;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getDay_sal() {
        return day_sal;
    }

    public void setDay_sal(double day_sal) {
        this.day_sal = day_sal;
    }

    public int getWork_day() {
        return work_day;
    }

    public void setWork_day(int work_day) {
        this.work_day = work_day;
    }

    public void show_month_sal(){
        System.out.println(get_month_sal());
    }
    public double get_month_sal(){
        return work_day*day_sal;
    }
}
